package com.ccys.db.vo.app.getStarted;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author：XLY
 * @Date：2024/1/17 0017
 */

@Data
public class FamilyVo {

    private String id;

    @JsonProperty("first_name")
    private String firstName;

    @JsonProperty("last_name")
    private String lastName;

    @JsonProperty("nric_fin")
    private String nricFin;

    private boolean pregnant;

    private boolean g6pd;

    private String gender;

    private String relationship;

    private Integer age;

    @JsonProperty("date_of_birth")
    private Date dateOfBirth;

    @JsonProperty("reg_date")
    private Date regDate;


    @JsonProperty("refresh_token")
    private String refreshToken;

    @JsonProperty("Mem_update_on")
    private Date MemUpdateOn;

    @JsonProperty("profile_photo")
    private String profilePhoto;

    @JsonProperty("front_identification_card_photo")
    private String frontIdentificationCardPhoto;

    @JsonProperty("back_identification_card_photo")
    private String backIdentificationCardPhoto;

    @JsonProperty("passport_photo")
    private String passportPhoto;

    @JsonProperty("birth_certificate_photo")
    private String birthCertificatePhoto;

    @JsonProperty("front_general_card_photo")
    private String frontGeneralCardPhoto;

    @JsonProperty("back_general_card_photo")
    private String backGeneralCardPhoto;

    @JsonProperty("child_photo")
    private String childPhoto;

    @JsonProperty("type_id")
    private String typeId;

    @JsonProperty("Mem_Type_ID")
    private String memTypeID;

    @JsonProperty("shared_child")
    private Integer sharedChild;

    @JsonProperty("pending_nric")
    private String pendingNric;

    private List<AllergyVo> allergies;

    @JsonProperty("medication_reactions")
    private List<MedicationReactionVo> medicationReactions;

    @Data
    public static class AllergyVo{

        private String id;

        private String name;

        private Integer index;
    }


    @Data
    public static class MedicationReactionVo{

        private String id;

        private String name;

        private Integer index;

        @JsonProperty("otherreaction")
        private String otherReaction;
    }

}
